home *** CD-ROM | disk | FTP | other *** search
- property pTheModel, pLastTime
-
- on beginSprite me
- sprite(me.spriteNum).cursor = 0
- myMem = sprite(me.spriteNum).member
- pTheModel = myMem.model[1]
- repeat with i = 1 to pTheModel.shaderList.count
- pTheModel.shaderList[i].transparent = 0
- end repeat
- if (the environment).productVersion = "8.5.1" then
- sprite(me.spriteNum).antiAliasingEnabled = 1
- end if
- pLastTime = the milliSeconds
- end
-
- on exitFrame me
- timeElapsed = the milliSeconds - pLastTime
- thePercent = timeElapsed / 33.0
- pTheModel.rotate(vector(0, 3 * thePercent, 0), #self)
- pLastTime = the milliSeconds
- end
-